#!/bin/sh

for i in `cat pkgs`
do
  a=`pacaur -Si $i | grep -m 1 'Archi' | cut -d ':' -f 2 | tr -d ' '`
  if [ "${a}" = "any" ]
  then
    sed -i "/$i/d" pkgs
  fi
done
